import axios from "@/utils/request";


export const addOrderAPI = (data = {},option={}) => axios.post("/order/addOrder",data,{ ...option})
export const updateOrderAddress = (data = {},option={}) => axios.post("/order/updateOrderAddress",data,{ ...option})

export const confirmOrderAPI = (data={},option={}) => axios.get("/order/confirmOrder",{   
    params:data,  // get传参 params:{}
    ...option
})
export const payForOrderAPI = (data={},option={}) => axios.get("/order/deleteCartItem",{   
    params:data,  // get传参 params:{}
    ...option
})